x86: Compile fix for p2m audit code.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 10:57:17 +0000 (10:57 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 10:57:17 +0000 (10:57 +0000)
From Tom Woller.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/p2m.c

index ee98ae8c6ab6e628e800324ca1f3cc70096dcd58..b82e7ef7048a62a563f03d0271a7ecef8bfc897e 100644 (file)
@@ -486,6 +486,7 @@ static void audit_p2m(struct domain *d)
     mfn_t p2mfn;
     unsigned long orphans_d = 0, orphans_i = 0, mpbad = 0, pmbad = 0;
     int test_linear;
+    p2m_type_t type;
 
     if ( !paging_mode_translate(d) )
         return;
@@ -534,7 +535,7 @@ static void audit_p2m(struct domain *d)
             continue;
         }
 
-        p2mfn = gfn_to_mfn_foreign(d, gfn);
+        p2mfn = gfn_to_mfn_foreign(d, gfn, &type);
         if ( mfn_x(p2mfn) != mfn )
         {
             mpbad++;
@@ -547,12 +548,12 @@ static void audit_p2m(struct domain *d)
             /* This m2p entry is stale: the domain has another frame in
              * this physical slot.  No great disaster, but for neatness,
              * blow away the m2p entry. */
-            set_gpfn_from_mfn(mfn, INVALID_M2P_ENTRY, __PAGE_HYPERVISOR|_PAGE_USER);
+            set_gpfn_from_mfn(mfn, INVALID_M2P_ENTRY);
         }
 
         if ( test_linear && (gfn <= d->arch.p2m.max_mapped_pfn) )
         {
-            lp2mfn = mfn_x(gfn_to_mfn_current(gfn));
+            lp2mfn = mfn_x(gfn_to_mfn_current(gfn, &type));
             if ( lp2mfn != mfn_x(p2mfn) )
             {
                 P2M_PRINTK("linear mismatch gfn %#lx -> mfn %#lx "